﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ADECMS._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style2
        {
            width: 25px;
        }
        .style1
        {
            width: 696px;
        }
    </style>
    <link href="Css/ADEStylesheet.css" rel="stylesheet" type="text/css" />
    <link href="Css/ADEStylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table style="height: 150px;">
        <tr>
            <td style="font-family: Segoe Script; font-size: 48px; color: Purple; width: 50%;">
                ADE
            </td>
            <td>
                <div class="loginUser">
                    <p style="height: 28px">
                        Korisničko ime:
                        <asp:TextBox ID="KorisnickoIme" runat="server" Height="22px" CssClass="inputText"
                            Style="margin-left: 7px" Width="135px"></asp:TextBox>
                        Šifra:
                        <asp:TextBox ID="Sifra" runat="server" Height="22px" CssClass="inputText" Style="margin-left: 5px"
                            TextMode="Password" Width="135px"></asp:TextBox>
                        <asp:Button ID="LogIn" runat="server" OnClick="LogIn_Click" Style="margin-left: 8px"
                            Text="LogIn" />
                        <asp:Button ID="Registracija" runat="server" OnClick="Registracija_Click" Style="margin-left: 12px"
                            Text="Registracija" />
                    </p>
                    <p style="height: 21px">
                        <asp:Label ID="Label1" runat="server" CssClass="inputObligatory"></asp:Label>
                        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="ADECMS.ADECMSDBDataContext"
                            Select="new (title)" TableName="NEWs">
                        </asp:LinqDataSource>
                    </p>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="height: 45px;">
                &nbsp;
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td align="center" valign="top">
                <asp:ListView ID="ListView1" runat="server" DataSourceID="LinqDataSource1" OnItemCommand="ListView1_ItemCommand">
                    <ItemTemplate>
                        <tr style="">
                            <td>
                                <!--<asp:Label ID="naslovLabel" runat="server" Text='<%# Eval("title") %>' />-->
                                <asp:Button ID="OdaberiClanak" runat="server" CommandArgument='<%#Eval("title") %>'
                                    CommandName="BtnClick" Text='<%#Eval("title") %>' Width="195px" />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <EmptyDataTemplate>
                        <table id="Table1" runat="server" style="">
                            <tr>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                    <InsertItemTemplate>
                        <tr style="">
                            <td>
                                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" />
                                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" />
                            </td>
                            <td>
                                <asp:TextBox ID="naslovTextBox" runat="server" Text='<%# Bind("title") %>' />
                            </td>
                        </tr>
                    </InsertItemTemplate>
                    <LayoutTemplate>
                        <table id="Table2" runat="server">
                            <tr id="Tr1" runat="server">
                                <td id="Td1" runat="server">
                                    <table id="itemPlaceholderContainer" runat="server" border="0" style="">
                                        <tr id="Tr2" runat="server" style="">
                                            <th id="Th1" runat="server">
                                                navigator
                                            </th>
                                        </tr>
                                        <tr id="itemPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr id="Tr3" runat="server">
                                <td id="Td2" runat="server" style="">
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                    <EditItemTemplate>
                        <tr style="">
                            <td>
                                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Update" />
                                <asp:Button ID="CancelButton0" runat="server" CommandName="Cancel" Text="Cancel" />
                            </td>
                            <td>
                                <asp:TextBox ID="naslovTextBox0" runat="server" Text='<%# Bind("title") %>' />
                            </td>
                        </tr>
                    </EditItemTemplate>
                    <SelectedItemTemplate>
                        <tr style="">
                            <td>
                                <asp:Label ID="naslovLabel" runat="server" Text='<%# Eval("title") %>' />
                            </td>
                        </tr>
                    </SelectedItemTemplate>
                </asp:ListView>
            </td>
            <td class="style2">
                &nbsp;
            </td>
            <td align="center" class="style1" valign="top">
                <asp:Label ID="ClanakNaslov" runat="server" CssClass="registracijaHeader"></asp:Label>
                <br />
                <br />
                <div align="justify" dir="ltr">
                    <asp:Label ID="ClanakText" runat="server"></asp:Label>
                <br />
                <br />
                    <asp:Label ID="ClanakAutorDat" runat="server"></asp:Label>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
